﻿using System.ComponentModel;

namespace Model.BusinessModel.OutPut.sys
{
    /// <summary>
    /// 角色输出模型
    /// </summary>
    [EnitityMapping(MenuId = "380CA40B-8B62-4EBE-86D7-91AE48292F50")]

    public class SysRoleOutPut
    {
        /// <summary>
        /// 角色id
        /// </summary>
        [Description("角色id")]
        public int RoleId { get; set; }

        /// <summary>
        /// 上级角色id
        /// </summary>
        [Description("上级角色id")]
        public int Pid { get; set; }

        /// <summary>
        /// 公司key
        /// </summary>
        [Description("公司key")]
        public string? CorporationKey { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [Description("公司名称")]
        public string? CorporationName { get; set; }

        /// <summary>
        /// 系统key
        /// </summary>
        [Description("系统key")]
        public string? SystemKey { get; set; }

        /// <summary>
        /// 系统名称
        /// </summary>
        [Description("系统名称")]
        public string? SystemName { get; set; }

        /// <summary>
        /// 创建用户名称
        /// </summary>
        [Description("创建用户名称")]
        public string? UserName { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        [Description("角色名称")]
        public string? RoleName { get; set; }

        /// <summary>
        /// 角色类型
        /// </summary>
        [Description("角色类型")]
        public int RoleType { get; set; }

        /// <summary>
        /// 是否开启
        /// </summary>
        [Description("是否开启")]
        public bool IsOpen { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Description("创建时间")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人员key
        /// </summary>
        [Description("创建人员")]
        public string? CreateUser { get; set; }

        /// <summary>
        /// 支持树形结构
        /// </summary>
        [Description("支持树形结构")]
        public List<SysRoleOutPut>? Children { get; set; }
    }
}
